<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>

<link href="locautowebbd/estilo.css" rel="stylesheet" type="text/css">
<SCRIPT language=JavaScript type="text/javascript">
function enviardados(){
	
	if(document.dados.codigo.value=="" || document.dados.codigo.value.length < 15)
	{
		alert( "Preencha campo CODIGO corretamente!" );
			document.dados.codigo.focus();
				return false;
	}
	if(document.dados.descricao.value=="" || document.dados.descricao.value.length < 30)
	{
		alert( "Preencha campo DESCRICAO corretamente!" );
			document.dados.descricao.focus();
				return false;
	}
	
	
	}
return true;
}
	

</script>

</head>
<h2>LocAutoWEb</h2>
<h3><marquee behavior="slide" class="verde">Sejam,bem vindos</marquee></h3>

<body bgcolor="#FFFFFF">


<div align="center"><b>Cadastro de Modelo</b><br>
</div>
<form method="post" action="processarCadastroModelo.jsp" onsubmit="return enviardados();">
  <table width="75%" border="1" align="center">
       <tr class="azul">
      <td width="16%">Codigo</td>
      <td width="84%">
        <input type="text" name="codigo" size="50" maxlength="50">(*)
      </td>

    </tr>
    <tr class="azul">
      <td width="16%">Descricao</td>
      <td width="84%">
        <input type="text" name="descricao" size="50" maxlength="50">(*)
      </td>
    </tr>
   
      <td colspan="2">(*) Campos obrigat&oacute;rios</td>

    </tr>
  </table>
  <p align="center">
    <input type="submit" name="Salvar" value="Salvar">
    <input type="reset" name="Limpar" value="Limpar">
  </p>
</form>

</body>
</html>